<%@ page contentType="text/html; charset=utf-8"%>
<% 
/**
 * @Class Name : EgovCertGpkisecureweb.jsp
 * @Description : GPKISecureWeb의 gpkisecureweb.jsp 수정
 * @Modification Information
 * @
 * @  수정일      수정자            수정내용
 * @ -------        --------    ---------------------------
 * @ 2009.08.13   한성곤          최초 생성
 *
 *  @author 공통컴포넌트개발팀 한성곤
 *  @since 2009.08.13
 *  @version 1.0 
 *  @see
 */
%><%@ page import="com.gpki.io.GPKIJspWriter" %>
<%@ page import="com.gpki.servlet.GPKIHttpServletRequest" %>
<%@ page import="com.gpki.servlet.GPKIHttpServletResponse" %>
<%@ page import="com.gpki.secureweb.GPKIKeyInfo" %>
<%@ page import="com.dsjdf.jdf.*" %>
<%@ page import="java.net.*"%>
<%
    GPKIHttpServletResponse gpkiresponse = null;
    GPKIHttpServletRequest gpkirequest = null;

    try {
        gpkiresponse=new GPKIHttpServletResponse(response); 
	    gpkirequest= new GPKIHttpServletRequest(request);

        gpkiresponse.setRequest(gpkirequest);

        out=new GPKIJspWriter(out,(GPKIKeyInfo)session.getAttribute("GPKISession"));  
        //out=new GPKIJspWriter(out,(GPKIKeyInfo)gpkirequest.getAttribute("GPKISession"));  
		Logger.debug.println(this, "[current_thread]["+Thread.currentThread()+"] gpkisecureweb ref= " + out.toString());             
    } catch(Exception e) {

        //com.dsjdf.jdf.Config dsjdf_config = new com.dsjdf.jdf.Configuration();
        StringBuffer sb=new StringBuffer(1500);
        //sb.append(dsjdf_config.get("GPKISecureWeb.errorPage"));
        sb.append(request.getContextPath()).append("/utl/sec/certGPKIError.do");
        sb.append("?errmsg=");
        sb.append(URLEncoder.encode(e.getMessage()));
        
        response.sendRedirect(sb.toString()) ;  

		return;
    }
%>